package com.xiaozheng.daomain;

import java.io.Serializable;

/**
 * @Package: com.xiaozheng.domain
 * @ClassName: Account
 * @Author: 小政同学    QQ:xiaozheng666888@qq.com
 * @CreateTime: 2020/9/4 14:38
 * @What_is_this_file_for: 这个文件是用来做什么的?
 * @Description: 描述
 */
public class Account implements Serializable {
    private int id;
    private int uid;
    private Double money;
    //多对一（mybatis中称为一对一）的映射：一个账户只能属于一个用户
    private User user;

    public User getUser() {
        return user;
    }

    public void setUsers(User user) {
        this.user = user;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getUid() {
        return uid;
    }

    public void setUid(int uid) {
        this.uid = uid;
    }

    public Double getMoney() {
        return money;
    }

    public void setMoney(Double money) {
        this.money = money;
    }

    @Override
    public String toString() {
        return "Account{" +
                "id=" + id +
                ", uid=" + uid +
                ", money=" + money +
                '}';
    }
}
